<template>
	<view class="hot" style="padding-top: 20rpx;"><job-list :list="jobList"></job-list></view>
</template>

<script>
import { getJobList } from '@/apis/job/index.js';
import JobList from '@/components/JobList.vue';

export default {
	components: { JobList },
	data() {
		return {
			jobList: []
		};
	},
	mounted() {
		this.initData();
	},
	methods: {
		async initData() {
			const res = await getJobList({ hot: 1, page: 1, size: 100 });
			this.jobList = res.data.list;
			console.log(res);
		}
	}
};
</script>

<style lang="scss"></style>
